<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
    <!--<meta http-equiv="Expires" contect="Mon,12 May 2017 00:20:00 GMT">可以用于设定网页的到期时间，一旦过期则必须到服务器上重新调用。需要注意的是必须使用GMT时间格式；-->

    <!--　　4、<meta http-equiv="Pragma" contect="no-cache">是用于设定禁止浏览器从本地机的缓存中调阅页面内容，设定后一旦离开网页就无法从Cache中再调出；-->

    <!--　　5、<meta http-equiv="set-cookie" contect="Mon,12    May 2001 00:20:00 GMT">cookie设定，如果网页过期，存盘的cookie将被删除。需要注意的也是必须使用GMT时间格式；-->

    <!--　　6、<meta http-equiv="Pics-label" contect="">网页等级评定，在IE的internet选项中有一项内容设置，可以防止浏览一些受限制的网站，而网站的限制级别就是通过meta属性来设置的；-->

    <!--　　7、<meta http-equiv="windows-Target" contect="_top">强制页面在当前窗口中以独立页面显示，可以防止自己的网页被别人当作一个frame页调用；-->
    <link rel="stylesheet" href="css/base.css"/>
    <link rel="stylesheet" href="css/style.css"/>
    <meta name="keywords" content="端午节活动|端午节拼图|端午节拼图活动">
    <meta name="description" content="快乐端午节，吃粽子赛龙舟，更有玩拼图,赢取福利！">
    <title>参与活动赢大奖</title>
</head>
<body>
<div class="indexBox">
    <div class="logo"><img src="./img/LOGO.png" alt=""/>华质检测</div>
    <div class="indexExplainBtn"></div>
    <a href="tel://13229899946" class=" btn1">拨打电话</a>
    <a href="hzApp://www.kaola.com" class=" btn1">打开APP</a>
    <br>
    <button id="openNN" class="btn1">打开牛牛客户端</button><br/>
    <script type="text/javascript" src="./js/tool_nativ.js"></script>
    <script type="text/javascript">
        document.querySelector("#openNN").addEventListener("click",function(){
            var login = "login";
            nativeSchema.loadSchema({
                // 通过NN打开某个链接


                schema: "zhms.com/mall/123",
                //schema头协议，实际情况填写


                protocal:"zhms",
                //发起唤醒请求后，会等待loadWaiting时间，超时则跳转到failUrl，默认3000ms


                loadWaiting:"3000",
                //唤起失败时的跳转链接，默认跳转到下载页


                failUrl:"http://a.app.qq.com/o/simple.jsp?pkgname=cn.futu.trader&g_f=991653",
                // apk信息,请根据实际情况填写


                apkInfo:{
                    PKG: "com.avic.zhms",
                    CATEGORY: "android.intent.category.DEFAULT",
                    ACTION: "android.intent.action.VIEW"
                }
            });
        });
    </script>
    <a href="http://123.124.202.227/content/assess/view/320" class="startAnswer btn1">试试</a>
    <div class="indexExplain">
        <p>
            活动时间 ：<br><br>
            2017年5月27日 <br><br>
            活动奖品：<br><br>
            一等奖：1名    现金红包100元<br>
            二等奖：3名    现金红包50<br>
            三等奖：20名   现金红包10元<br>
            参与奖：50名   现金红包1元<br><br>
            活动及兑奖说明：<br><br>
            凡在规定时间内完成游戏的用户均可获得抽奖资格，每位用户有3次抽奖机会，中奖后按照提示的兑奖流程领取奖品，建议立即领取，超出24小时不领视为主动放弃。
            <br><br><br>
            <span style="color: #ef392b">本活动最终解释权归华质检测平台所有</span>
        </p>
        　<span class="indexExplainGb"></span>
    </div>
</div>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<script type="text/javascript">
    $(function(){
//        (function () {
//            if (module.declare === undefined) {
//                throw 'There is no global module.declare method!';
//            }
            //userAgent regexp
            var Exp_USERAGENT = {
                //browser
                MSIE : /(msie) ([\w.]+)/,
                MOZILLA : /(mozilla)(?:.*? rv:([\w.]+)|)/,
                SAFARI : /(safari)(?:.*version|)[\/]([\d.]+)/,
                CHROME : /(chrome|crios)[\/]([\w.]+)/,
                OPERA : /(opera|opr)(?:.*version|)[\/]([\w.]+)/,
                WEBOS : /(webos|hpwos)[\s\/]([\d.]+)/,
                DOLFIN : /(dolfin)(?:.*version|)[\/]([\w.]+)/, //
                SILK : /(silk)(?:.*version|)[\/]([\w.]+)/, //
                UC : /(uc)browser(?:.*version|)[\/]([\w.]+)/, //
                TAOBAO : /(tao|taobao)browser(?:.*version|)[\/]([\w.]+)/,
                LIEBAO : /(lb)browser(?:.*? rv:([\w.]+)|)/,
                //AMAYA:/(amaya)[\/]([\w.]+)/,
                //SEAMONKEY:/(seamonkey)[\/]([\w.]+)/,
                //OMNIWEB:/(omniweb)[\/]v([\w.]+)/,
                //FLOCK:/(flock)[\/]([\w.]+)/,
                //EPIPHANY:/(epiphany)[\/]([\w.]+)/,
                MicroMessenger :/micromessenger/i,//

                //engine
                WEBKIT : /webkit[\/]([\w.]+)/,
                GECKO : /gecko[\/]([\w.]+)/, //
                PRESTO : /presto[\/]([\w.]+)/, //
                TRIDENT : /trident[\/]([\w.]+)/,

                //device
                MAC : /(mac os x)\s+([\w_]+)/, //
                WINNDOWS : /(windows nt)\s+([\w.]+)/, //
                LINUX : /linux/, //
                //IOS : /i(?:pad|phone|pod)(?:.*)cpu(?: iphone)? os/,
                IOS : /(i(?:pad|phone|pod))(?:.*)cpu(?: i(?:pad|phone|pod))? os (\d+(?:[\.|_]\d+){1,})/,
                ANDROID : /(android)\s+([\d.]+)/,
                WINDOWSPHONE : /windowsphone/, //
                IPAD : /(ipad).*os\s([\d_]+)/,
                IPHONE : /(iphone\sos)\s([\d_]+)/,
                IPOD : /(ipod)(?:.*)cpu(?: iphone)? os (\d+(?:[\.|_]\d+){1,})/,
                TOUCHPAD : /touchpad/,
                BLACKBERRY : /(playbook|blackberry|bb\d+).*version\/([\d.]+)/,
                RIMTABLET : /rimtablet/, //
                BADA : /bada/, //
                CHROMEOS : /cromeos///
            };
            //define os module
//            module.declare('os', function (require, exports, module) {
                function detect(ua) {
                    var os = {},
                    //browser
                            chrome = ua.match(Exp_USERAGENT.CHROME),
                            opera = ua.match(Exp_USERAGENT.OPERA),
                            msie = ua.match(Exp_USERAGENT.MSIE),
                            safari = (ua + ua.replace(Exp_USERAGENT.SAFARI, ' ')).match(Exp_USERAGENT.SAFARI), //modify the jquery bug
                            mozilla = ua.match(Exp_USERAGENT.MOZILLA),
                            webos = ua.match(Exp_USERAGENT.WEBOS),
                            dolphi = ua.match(Exp_USERAGENT.DOLFIN),
                            silk = ua.match(Exp_USERAGENT.SILK),
                            uc = ua.match(Exp_USERAGENT.UC),
                            taobao=ua.match(Exp_USERAGENT.TAOBAO),
                            liebao=ua.match(Exp_USERAGENT.LIEBAO),

                    //engine
                            webkit = ua.match(Exp_USERAGENT.WEBKIT),
                            gecko = ua.match(Exp_USERAGENT.GECKO),
                            presto = ua.match(Exp_USERAGENT.PRESTO),
                            trident = ua.match(Exp_USERAGENT.TRIDENT),

                    //device
                            mac = ua.match(Exp_USERAGENT.MAC),
                            windows = ua.match(Exp_USERAGENT.WINNDOWS),
                            linux = ua.match(Exp_USERAGENT.LINUX),
                            chromeos = ua.match(Exp_USERAGENT.CHROMEOS),

                    //pad
                            ipad = ua.match(Exp_USERAGENT.IPAD),
                            rimtablet = ua.match(Exp_USERAGENT.RIMTABLET),
                            touchpad = webos && ua.match(Exp_USERAGENT.TOUCHPAD),

                    //mobile
                            ios = ua.match(Exp_USERAGENT.IOS),
                            ipod = ua.match(Exp_USERAGENT.IPOD),
                            iphone = !ipad && ua.match(Exp_USERAGENT.IPHONE),
                            android = ua.match(Exp_USERAGENT.ANDROID),
                            windowsphone = ua.match(Exp_USERAGENT.WINDOWSPHONE),
                            blackberry = ua.match(Exp_USERAGENT.BLACKBERRY),
                            bada = ua.match(Exp_USERAGENT.BADA);

                    //engine
                    if (webkit)
                        os.webkit = true;
                    if (gecko)
                        os.gecko = true;
                    if (presto)
                        os.presto = true;
                    if (trident)
                        os.trident = true;
                    //device
                    os['device'] = {};
                    //
                    if (mac)
                        os.mac = true, os['device']['name'] = 'mac os', os.version = mac[2];
                    if (windows)
                        os.windows = true, os['device']['name'] = 'window', os.version = windows[2];
                    if (linux)
                        os.linux = true, os['device']['name'] = 'linux'; //
                    if (chromeos)
                        os.chromeos = true, os['device']['name'] = 'chromeos', os.version = chromeos[2];
                    //if (ios) os.ios=true;//
                    if (android)
                        os.android = true, os['device']['name'] = 'android', os.version = android[2];
                    if (iphone)
                        os.ios = true, os['device']['name'] = 'iphone',os.version = iphone[2].replace(/_/g, '.'), os.iphone = true;
                    if (ipod)
                        os.ios = true, os['device']['name'] = 'ipod',os.version = ipod[2].replace(/_/g, '.'), os.ipod = true;
                    if (ipad)
                        os.ios = true, os['device']['name'] = 'ipad', os.version = ipad[2].replace(/_/g, '.'), os.ipad = true;
                    if (webos)
                        os.webos = true, os['device']['name'] = 'webos',os.version = webos[2];
                    if (blackberry)
                        os.blackberry = true, os['device']['name'] = 'blackberry', os.version = blackberry[2];
                    if (bada)
                        os.bada = true, os['device']['name'] = 'bada',os.version = ''; //
                    if (rimtablet)
                        os.rimtablet = true, os['device']['name'] = 'rimtablet', os.version = ''; //
                    if (touchpad)
                        os.touchpad = true, os['device']['name'] = 'touchpad',os.version = ''; //
                    //os.device.version
                    os['device']['version'] = os.version;
                    if (!(android || iphone || ipad || ipod || webos || blackberry || bada || rimtablet || touchpad))
                        os.desktop = true, os.version = '';
                    //browser
                    var match = dolphi || silk || uc || msie || taobao || liebao || opera || chrome || safari || (ua.indexOf('compatible') < 0 && mozilla);
                    //chrome
                    match[1] = match[1] === 'crios' ? 'chrome' : match[1];
                    //taobao
                    match[1] = match[1] === 'tao' ? 'taobao' : match[1];
                    //
                    os[match[1]] = true;
                    os['browser'] = match[1];
                    os['version'] = match[2]||'';
                    //major
                    os['version'] && (os['major'] = parseInt(os['version'],10));
                    //revise
                    //safari
                    if (os.ios && os.webkit && !os.desktop) {
                        try{
                            //in node js
                            os.safari = (window.canSetSearchEngine || window.TrackEvent) ? true : false;
                        }catch(e){}
                        var v=os['major']||parseInt(os['device-version'],10)||'';
                        v && (os['ios'+v]=true);
                    }
                    //ie 11
                    if(os.trident && os.major >= 11){
                        os.browser='msie';
                        os.msie=true;
                        delete os.mozilla;
                    }
                    //mozilla/firefox
                    if (os.mozilla) {
                        os.firefox = true;
                    }
                    //opera
                    if(os.browser === 'opr'){
                        os.browser = 'opera';
                        os.opera=os.opr;
                    }
                    //blackberry
                    if(os.blackberry){
                        //
                        delete os.safari;
                    }
                    //MicroMessager
                    if(Exp_USERAGENT.MicroMessenger.test(ua)){
                        //
                        os.micromessage=true;
                    }
                    //uc
                    var DOMWindow = DOMWindow || {};
                    if (DOMWindow && DOMWindow.UCNewsJSController) {
                        os.uc = true,
                                os.browser = 'uc';
                    }
                    //
                    try{
                        //orientation
                        os.orientation = (window.orientation === 180 || window.orientation === 0) ? 'portrait' : 'landscape';
                    }catch(e){}
                    //os.device.type
                    if(os.desktop){
                        os.device['type']='desktop';
                    }else{
                        os.device['type']='mobile';
                    }
                    //
                    return os;
                };
                //navigator.userAgent.toLowerCase()
            var aa = detect(navigator.userAgent.toLowerCase());
            alert(JSON.stringify(aa));
//            });
//        })();

    })

</script>
</body>
</html>